﻿using Janus.Mes.POCO;
using Janus.Mes.SqlDal;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Janus.Cores.Extension;
using Janus.Mes.IDal;
using Janus.Mes.DTO;
using Tests.Janus.Mes.SqlDal.ConsWrite.dal;
using System.Text.RegularExpressions;

namespace Tests.Janus.Mes.SqlDal.ConsWrite
{
    class Program
    {
        static void Main(string[] args)
        {
            new ResolveExpressionTest();



            //string where = "ins>{@0} and id={@2}";
            //Regex reg = new Regex(@"\{(@|\w|\d)*\}");
            //int i = 0;
            //string my = reg.Replace(where, c =>
            //  {
            //      string result = string.Format("@{0}", i);
            //      i++;
            //      return result;
            //  });



            //IndicatorDTO model = new IndicatorDTO()
            //{
            //    IndicatorName = "IndicatorName111",
            //    IndicatorValue = 2,
            //    CreateDt = DateTime.Now
            //};
            //var models = new List<IndicatorDTO>();
            //models.Add(model);

            //Indicator modelTo = AutoMapper.Mapper.DynamicMap<Indicator>(model);
            //var modelTos = AutoMapper.Mapper.DynamicMap<List<Indicator>>(model);

            ////var model = new Indicator();
            ////model.Id = 1;
            ////model.IndicatorName = "测试UpdateMany";
            ////model.IndicatorFiledName = "IndicatorFiledName";
            ////model.IndicatorValue = 2;
            ////model.CreateDt = DateTime.Now;
            ////var tb = model.ToHastable();
            ////FillAll();
            IndicatorDalTest t1 = new IndicatorDalTest();

            // ExpressTreeTest test = new ExpressTreeTest();
            Console.ReadKey();
        }


    }
}
